home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / palette / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.6 KB  |  64 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_MAINFRM_H__736ADA4C_9752_11D1_9327_00600820B4FF__INCLUDED_)
  6. #define AFX_MAINFRM_H__736ADA4C_9752_11D1_9327_00600820B4FF__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12.  
  13. #define GlobalFree LocalFree
  14. #define GlobalAlloc LocalAlloc
  15. #define GlobalSize LocalSize
  16. #define GHND LMEM_FIXED | LMEM_ZEROINIT
  17.  
  18. class CMainFrame : public CFrameWnd
  19. {
  20. protected: // create from serialization only
  21.     CMainFrame();
  22.     DECLARE_DYNCREATE(CMainFrame)
  23.  
  24. // Attributes
  25. public:
  26.     BOOL m_bPalette;
  27. #if (_WIN32_WCE > 200)
  28.     CCeCommandBar m_wndCommandBar;
  29. #endif
  30. // Operations
  31. public:
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CMainFrame)
  36.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. public:
  41.     virtual ~CMainFrame();
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CMainFrame)
  50.     afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  51.     afx_msg BOOL OnQueryNewPalette();
  52.     afx_msg void OnFilePalette();
  53.     afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
  54.     //}}AFX_MSG
  55.     DECLARE_MESSAGE_MAP()
  56. };
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.  
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  62.  
  63. #endif // !defined(AFX_MAINFRM_H__736ADA4C_9752_11D1_9327_00600820B4FF__INCLUDED_)
  64.